package com.groovyscrum

class Story {

    String name
    String description
    Integer priority
    Backlog backlog
    static belongsTo = Backlog
    static hasMany=[tasks:Task]
    static constraints = {
        tasks(nullable:true)
    }
    String toString(){
        name
    }
}